'use strict';
let path = require('path');
let defaultSettings = require('./defaults');

let additionalPaths = [];

const autoprefixer = require('autoprefixer');

module.exports = {
    additionalPaths: additionalPaths,
    port: defaultSettings.port,
    debug: true,
    devtool: 'eval',
    output: {
        path: path.join(__dirname, '/../dist/assets'),
        filename: 'app.js',
        publicPath: defaultSettings.publicPath
    },
    devServer: {
        contentBase: './src/',
        inline: true,
        historyApiFallback: true,
        hot: true,
        port: defaultSettings.port,
        publicPath: defaultSettings.publicPath,
        noInfo: false
    },
    resolve: {
        extensions: ['', '.js', '.jsx', '.scss', '.css']
    },
    module: {},
    postcss: [autoprefixer({ browsers: ['last 2 versions'] })]
};